<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <base th:href="${#request.getContextPath() + '/'}"/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
    <!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
    <!-- Reset Stylesheet -->
    <link rel="stylesheet" href="resources/css/reset.css" type="text/css"
          media="screen" />
    <!-- Main Stylesheet -->
    <link rel="stylesheet" href="resources/css/style.css" type="text/css"
          media="screen" />
    <link rel="stylesheet" href="resources/css/invalid.css" type="text/css"
          media="screen" />

    <!--                       Javascripts                       -->
    <!-- jQuery -->
    <script type="text/javascript"
            src="resources/scripts/jquery-1.3.2.min.js"></script>
    <!-- jQuery Configuration -->
    <script type="text/javascript"
            src="resources/scripts/simpla.jquery.configuration.js"></script>
</head>
<body>
<div id="main-content">
    <div class="content-box">
        <!-- End .content-box-header -->
        <div class="content-box-content">
            <div class="tab-content default-tab" id="tab1">
                <table>
                    <thead>
                    <tr>
                        <th>请求标识</th>
                        <th>请求url</th>
                        <th>执行时间</th>
                        <th>是否异常</th>
                        <th>操作</th>
                    </tr>
                    </thead>

                    <tbody>
                    <tr th:each="log : ${page.getDatas()}">
                        <td th:text="${log.requestId}">请求标识</td>
                        <td th:text="${log.url}">url</td>
                        <td th:text="${log.time}">执行时间</td>
                        <td th:if="${log.throwInfo == 'null'}" style="color: green;">正常</td>
                        <td th:if="${log.throwInfo != 'null'}" style="color: red">异常</td>
                        <td>
                            <!-- Icons --> <a href="#" title="Edit"><img
                                src="resources/images/icons/pencil.png" alt="Edit" /></a> <a
                                href="#" title="Delete"><img
                                src="resources/images/icons/cross.png" alt="Delete" /></a> <a
                                href="#" title="Edit Meta"><img
                                src="resources/images/icons/hammer_screwdriver.png"
                                alt="Edit Meta" /></a>
                        </td>
                    </tr>
                    </tbody>

                    <!-- 分页 -->
                    <tfoot>
                    <tr>
                        <td colspan="6">
                            <div class="pagination">

                                <a th:unless="${page.page > 1}" title="First Page">&laquo; 首页</a>
                                <a th:unless="${page.page > 1}" title="Previous Page">&laquo; 上一页</a>

                                <a href="#" th:if="${page.page > 1}" th:href="|/runlog/searchlist?page=1|" title="First Page">&laquo; 首页</a>
                                <a href="#" th:if="${page.page > 1}" th:href="|/runlog/searchlist?page=${page.page - 1}|" title="Previous Page">&laquo; 上一页</a>



                                <a href="#" th:if="${page.page < page.pageCount}" th:href="|/runlog/searchlist?page=${page.page + 1}|" title="Next Page">下一页 &raquo;</a>
                                <a href="#" th:if="${page.page < page.pageCount}" th:href="|/runlog/searchlist?page=${page.pageCount}|" title="Last Page">尾页 &raquo;</a>

                                <a th:unless="${page.page < page.pageCount}" title="Next Page">下一页 &raquo;</a>
                                <a th:unless="${page.page < page.pageCount}" title="Last Page">尾页 &raquo;</a>

                                <a>当前第[[${page.page}]]页/共[[${page.pageCount}]]页</a>
                            </div> <!-- End .pagination -->
                            <div class="clear"></div>
                        </td>
                    </tr>
                    </tfoot>
                </table>
            </div>
        </div>
        <!-- End .content-box-content -->
    </div>
</div>
<!-- End #main-content -->
</body>
</html>